package com.ericsson.enap.modules.ebmLog.entity.vgc.amf;

import com.ericsson.enap.modules.ebmLog.entity.vgc.VgcEbmCcScc;
import lombok.Data;

import java.util.Objects;

/**
 * @description:
 * @author: wangjingshi
 * @create: 2021-11-13 19:36
 */
@Data
public class DeregistrationCcScc extends VgcEbmCcScc {

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DeregistrationCcScc t = (DeregistrationCcScc) o;
        return cause_code.equals(t.cause_code) && sub_cause_code.equals(t.sub_cause_code) &&
                deregistration_trigger.equals(t.deregistration_trigger);
    }


    @Override
    public int hashCode() {
        return Objects.hash(cause_code, sub_cause_code, deregistration_trigger);
    }

}
